/*
 * @Author: ljc
 * @Date: 2023-04-11 11:33:13
 * @LastEditors: g05047
 * @LastEditTime: 2023-04-17 10:14:44
 * @Description: 基础路由配置
 */

import Layout from '@/layout/index.vue'

const baseRoutes = [
  {
    path: '',
    name: 'Layout',
    hidden: true,
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'HomeView',
        component: () => import('@/views/home/HomeView.vue'),
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: '/login',
    hidden: true,
    name: 'LoginView',
    component: () => import('@/views/login.vue')
  },
  {
    path: '/proj-yhs',
    name: 'ProjectYhsPreviewView',
    component: () => import('@/views/project/base/ProjectYhsPreviewView.vue')
  }
]

export default baseRoutes
